<?
function db_connect($user, $password, $db, $server){
	mysql_connect($server, $user, $password);
	mysql_select_db($db);
}
db_connect("root", "63me33ta", "Meta", "meta5.redemeta.com.br");
if($_POST){
if($_POST['tipo'] == "user_nome"){
	$sinal = "LIKE '%$valor%'";
}else{
	$sinal = "= '$valor'";
}
$result = mysql_query("SELECT user_cod, dado_cod, serv_cod FROM usuario WHERE $tipo $sinal");
$linha = mysql_fetch_row($result);
?>
<table width="100%" border="0" cellspacing="0" cellpadding="4">
  <tr>
    <td width="8%"><strong>user_cod</strong></td>
    <td width="92%"><?=$linha[0]?></td>
  </tr>
  <tr>
    <td><strong>dado_cod</strong></td>
    <td><?=$linha[1]?></td>
  </tr>
  <tr>
    <td><strong>serv_cod</strong></td>
    <td><?=$linha[2]?></td>
  </tr>
</table>
<?
}else{
?>
<form method="post">
Tipo de dado:
<select name="tipo">
<option value="user_cod">user_cod</option>
<option value="user_nome">user_nome</option>
<option value="dado_cod">dado_cod</option>
<option value="serv_cod">serv_cod</option>
</select>
<br /><br />
Valor: <input type="text" name="valor">
</form>
<?
}
?>